#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>


typedef enum tagBorderType
{
    BorderTypeDashed,
    BorderTypeSolid
}BorderType;


@interface HPBorderView : UIView
{
    CAShapeLayer *_shapeLayer;
@private
    BOOL selectedStatus;
//    BorderType _borderType;
//    CGFloat _cornerRadius;
//    CGFloat _borderWidth;
//    NSUInteger _dashPattern;
//    NSUInteger _spacePattern;
//    UIColor *_borderColor;
}

@property (assign, nonatomic) BorderType borderType;
@property (assign, nonatomic) CGFloat cornerRadius;
@property (assign, nonatomic) CGFloat borderWidth;
@property (assign, nonatomic) NSUInteger dashPattern;
@property (assign, nonatomic) NSUInteger spacePattern;
@property (retain, nonatomic) UIColor *borderColor;
@property (assign, nonatomic) CGPoint leftTopPoint;
@property (retain, nonatomic) UIColor *selectedBorderColor;
@property (retain, nonatomic) UIColor *selectedBgColor;
@property (retain, nonatomic) UIColor *bgColor;

- (void)setHPselected:(NSNumber*)flag;

- (void)refresh;

@end